/**
 * Copyright (C) 2012 The SkyTvOS Project
 * <p/>
 * Version     Date           Author
 * ─────────────────────────────────────
 * 2014年12月29日         luwei
 */

package com.coocaa.launcher.sidebar.left.item.movie;

import android.app.Activity;
import android.content.Context;
import android.view.KeyEvent;
import android.view.View;

import com.coocaa.launcher.framework.sidebar.item.Item;
import com.coocaa.launcher.framework.sidebar.item.ItemView;
import com.coocaa.x.service.XServiceManager;

public class Movie extends Item {
    public Movie(Context context) {
        super(context);
    }

    @Override
    public void onItemFocusChange(View v, boolean focus) {
        // TODO Auto-generated method stub
        super.onItemFocusChange(v, focus);
    }

    @Override
    public boolean onItemKeyEvent(View v, int keycode, KeyEvent keyEvent) {
        return false;
    }

    @Override
    public void onItemClick(View v) {
        try {
            XServiceManager.getLiteCCConnectorService().startMediaCenter();
        } catch (Exception e) {
            e.printStackTrace();
        }
        super.onItemClick(v);
    }

    @Override
    public ItemView createItemView() {
        return new MovieItem(mContext);
    }

}
